#include <iostream>
#include <thread>
#include <vector>
using namespace std;

void myprint(int i)
{
	cout << "myprint" << i << endl;
}

int main()
{
	vector<thread> mythreads;
	for(int i=0; i<=10; ++i)
		mythreads.push_back(thread(myprint, i));
	//for(auto i=mythreads.begin(); i!=mythreads.end(); ++i)
	//	(*i).join();
	for(auto& i:mythreads)
		i.join();
	cout << "i love lsdlfjsldf" << endl;
	return 0;
}
